﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class admin_introduction_modifyintro : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            DB db = new DB();
            Introduction intro = db.getIntroduction();
            if (intro != null)
            {
                introTextBox_cn.Value = intro.Intro_cn;
                introTextBox_en.Value = intro.Intro_en;
            }
        }
    }
    protected void saveButton_Click(object sender, EventArgs e)
    {
        DB db = new DB();
        db.modifyIntroduction(introTextBox_cn.Value, introTextBox_en.Value);
    }
}
